package com.cxc.observer;

public class ObserverA implements Observer {
	private int mystate;

	public int getMyState() {
		return mystate;
	}

	public void setMyState(int state) {
		this.mystate = mystate;
	}

	public void update(Subject subject) {
		mystate = ((ConcreateSubject) subject).getState();
	}
}
